<script setup lang="ts">
defineProps<{
  dataSource: any[]
  rowKey: string
}>()
</script>

<template>
  <div class="list">
    <template v-for="item in dataSource" :key="item[rowKey]">
      <slot :item="item"></slot>
    </template>
  </div>
</template>

<style lang="less" scoped></style>
